#include "mainform.h"
#include "ui_homeform.h"
#include "ui_mainform.h"
#include "systempreferencesdialog.h"
#include <QPainter>
#include <QStyleOption>
#include <QFile>
#include <QTextStream>
#include "homeform.h"

MainForm::MainForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MainForm)
{
    ui->setupUi(this);
}

MainForm::~MainForm()
{
    delete ui;
}

void MainForm::SetCalibrationCorrection(bool _state)
{
    ui->page_home->SetCalibrationCorrection(_state);
}

void MainForm::paintEvent(QPaintEvent *event)
{
    QStyleOption opt;
    opt.init(this);
    QPainter painter(this);
    style()->drawPrimitive(QStyle::PE_Widget,&opt,&painter,this);
    QWidget::paintEvent(event);
}
